package com.bawei.common.mvi

import com.google.gson.Gson
import okhttp3.MediaType
import okhttp3.RequestBody

/**
 * @author ZhangRuiPeng
 * @description:
 */
abstract class BaseRepository {

    fun  createRequestBody(map: Map<String,Any>):RequestBody{
        return RequestBody.create(MediaType.parse("application/json"),Gson().toJson(map).toString())
    }

}